package com.ywd.materials.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 物资拆分信息实体类
 */
@Accessors(chain = true)
@Data
@TableName("materials_divide")
public class MaterialsDivideEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 物资拆分ID
     */
    @Schema(description = "物资拆分ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 操作人ID
     */
    @Schema(description = "操作人ID")
    private Long operatorId;

    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Long warehouseId;

    /**
     * 原装箱ID
     */
    @Schema(description = "原装箱ID")
    private String goodsPkgId;

    /**
     * 物资ID
     */
    @Schema(description = "物资ID")
    private Long goodsId;

    /**
     * 箱规格
     */
    @Schema(description = "箱规格")
    private Integer boxSize;

    /**
     * 物资总数量
     */
    @Schema(description = "物资总数量")
    private Integer goodsCount;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    private String recordTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 拆分状态(0=进行中/未扫码, 1=已完成/已扫码)
     */
    @Schema(description = "拆分状态(0=进行中/未扫码, 1=已完成/已扫码)")
    private Integer status;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private Long creator;

    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private Long updater;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;

    /**
     * 删除标识(0=正常,1=已删除)
     */
    @Schema(description = "删除标识(0=正常,1=已删除)")
    @TableLogic
    private Integer deleted;
}
